#include "header.h"
 
char *produce_next_name(char *pref)
{
  static char          *name = NULL;
  static char           c1 = 'a', c2 = 'a';
  static int            pos;
  if (!name)
    {
      name = malloc(strlen(pref) + 4);
      pos = strlen(pref) + 1;
      strncpy(name, pref, strlen(pref));
      name[pos-1] = '.';
    }
  name[pos] = c1;
  name[pos+1] = c2++;
  if (c2 > 'z')
    {
      ++c1; /*handle no more than 26*26 blocks*/
      c2 = 'a';
    }
  return name;
}

void mysplit(int fd, int len)
{
  int fdtemp;
  
}

int main ()
{
  return 0;
}
